﻿@model QLBV.Models.LoginModel
@{
    Layout = null;
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div id = "dang_nhap">
@if (Request.IsAuthenticated)
{
            if(Session["HoTen"] != null)
            {
                @Html.Action("Avatar","Home",new{id = Session["ID"]})
                <h3>
                    @Session["HoTen"].ToString()
                </h3>
            }
}
else
{

    using (Html.BeginForm("Login", "Login"))
    {
    <h2 id = "title">Đăng nhập</h2>
    <div id = "control">
        <div id = "label_username">
         @Html.LabelFor(m => m.Username)
        </div>
        <div id = "textbox_username">
           @Html.TextBoxFor(m => m.Username)
          
        </div>
        <div id = "label_password">
              @Html.LabelFor(m => m.Password)
        </div>
        <div id = "password_password">
            @Html.PasswordFor(m => m.Password)
        </div>
        <div id = "button_dangnhap">
           <input id="button" type="submit" value="Đăng nhập" />
         </div>
    </div>
    }
}
</div>